﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WorkShop.WorkShop
{
    public partial class Bill : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            double price = 0, quantity = 0, amount;
            Response.Write("Browser Information: <br /> Browser: " + Request.Browser.Browser + " and Version: " + Request.Browser.Version);
        
            Response.Write("<h2>Bill Details</h2>");
            Response.Write("Product No : " + Request.QueryString["prodno"]);
            Response.Write("<br />Name of the product : " + Request.QueryString["name"]);            
            price = Convert.ToDouble(Request.QueryString["price"]);
            quantity = Convert.ToDouble(Request.QueryString["quantity"]);
            amount = price * quantity;
            Response.Write("<br /> Amount : " + amount.ToString());
        }

    }
}